package com.woniuxy.controller;

import com.woniuxy.commons.utils.ResponseResult;
import com.woniuxy.service.RefundOrderService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/order")
public class RefundOrderController {
    @Resource
    RefundOrderService refundOrderService;
    @ApiOperation(value = "获取所有挂号数据")
    @GetMapping("/refundorder/findAll/{currentPage}/{pageSize}")
    public ResponseResult findAll(@ApiParam(name = "currentPage", value="当前页码",required=true)@PathVariable int currentPage,
                                  @ApiParam(name = "pageSize", value="页面大小",required=true)@PathVariable int pageSize){

        return refundOrderService.findAll(currentPage,pageSize);
    }
}
